<!--{Atemplate tpl/header}-->
<script src="{Acan_path_js}/acan/admin.js"></script>

<h2>$this->title</h2>
<form action="$this->Amodr-import_save" method="POST">

<div class="acan_nav">
	<dl>
		<dd>
			客户来源：<!--{form 'select','source',$crm_source,'',4}--> 
			<input type="submit" name="submit" value="确定导入所有选中表" />
		</dd>
	</dl>
	<ul class="anav_nav0 acan_nav_ul">
		<li>工作表:</li>
		<!--{loop $xls->boundsheets $key $val}-->
		<li id="anav_nav_0_$key" <!--{if $key==0}-->class="anav_chk"<!--{/if}-->><a onclick="Anav_show($key,0)">$val[name]</a></li>
		<!--{/loop}-->
	</ul>
	<!--{loop $xls->sheets $skey $sheet}-->
	<dl id="anav_0_$skey" class="anav_dl <!--{if $skey>0}-->dis_none<!--{/if}-->">
		<div class="aonfig_list$skey">
		<table class="-table">
			<tr>
				<td colspan="20">
					导入此工作表：
					<input type="radio" name="sheets[$skey]" value=""/>否
					<input type="radio" name="sheets[$skey]" value="$xls->boundsheets[$skey][name]"/>是
				</td>
			</tr>
			<tr>
				<th>序号</th>
			<!--{loop $sheet[cells][$skey+1] $key $val}-->
			<!--{eval
				$sv = 'mark';
				if(!empty($dfcol[$key])){
					$sv = $dfcol[$key];
				}
			}-->
				<th><!--{html select(array('name'=>'column['.$skey.']['.$key.']'),$column,$sv);}--></th>
			<!--{/loop}-->
			</tr>
		<!--{loop $sheet[cells] $key $val}-->
			<tr>
				<td>$key</td>
			<!--{eval
				$num = end(array_keys($val));
				for($i=1;$i<=$num;$i++){
			}-->
				<td>
					$val[$i]
					<input type="hidden" name="save[$skey][$key][$i]" size="1" value="$val[$i]">
				</td>
			<!--{eval } }-->
			</tr>
		<!--{/loop}-->
		</table>
		</div>
	</dl>
	<!--{/loop}-->
</div>
</form>

<!--{Atemplate tpl/footer}-->